Washington (CNN) U.S. Army Sgt. Bowe Bergdahl will face a military court on charges of desertion and endangering fellow soldiers, the U.S. Army announced Monday.

Gen. Robert Abrams, the commander of U.S. Army Forces Command, ordered the court-martial on Monday, breaking with the U.S. military officer overseeing Bergdahl's preliminary hearing who recommended that Bergdahl be referred to a special court-martial and face no jail time.

Filmmaker Timothy Tracy was arrested in Venezuela in April 2013 on allegations of funding opponents of newly elected President Nicolas Maduro, successor to the late Hugo Chavez. Tracy went to Venezuela to make a documentary about the political division gripping the country. He was released in June 2013.

Sixteen Americans were among the dozens arrested in December 2011 when Egypt raided the offices of 10 nongovernmental organizations that it said received illegal foreign financing and were operating without a public license. Many of the employees posted bail and left the country after a travel ban was lifted a few months later. Robert Becker, right, chose to stay and stand trial. He spent two years in prison and has since returned to the United States.

Haleh Esfandiari, an Iranian-American scholar, was detained at Iran's Evin Prison, spending months in solitary confinement before Iran released her on bail in August 2007. Esfandiari was visiting her ailing mother in Tehran when she was arrested and charged with harming Iran's national security.

Josh Fattal, center; Sarah Shourd, left; and Shane Bauer were detained by Iran while hiking near the Iraq-Iran border in July 2009. Iran charged them with illegal entry and espionage. Shourd was released on bail for medical reasons in September 2010; she never returned to face her charges. Bauer and Fattal were convicted in August 2011, but the next month they were released on bail and had their sentences commuted.

Without any apparent U.S. intervention, Robert Park was released by North Korea in 2010. The Christian missionary crossed into North Korea from China, carrying a letter asking Kim Jong Il to free political prisoners and resign. North Korea's state-run news agency said Park was released after an "admission and sincere repentance of his wrongdoings." Here, Park holds a photo of Kim and a malnourished child during a protest in Seoul.

Detained in April 2011, Eddie Yong Su Junwas released by North Korea a month afterward. His alleged crime was not provided to the media. The American delegation that secured his freedom included Robert King, the U.S. special envoy for North Korean human rights issues.

Former President Jimmy Carter negotiated the release of Aijalon Gomes, who was detained in 2010 after crossing into North Korea illegally from China. Analysts say high-level visits give Pyongyang a propaganda boost and a way to save face when it releases a prisoner.

North Korea has arrested Americans before, only to release them after a visit by a prominent dignitary. Journalists Laura Ling, center, and Euna Lee, to her left, spent 140 days in captivity after being charged with illegal entry to conduct a smear campaign. They were freed in 2009 after a trip by former President Bill Clinton.

Mexican authorities arrested Yanira Maldonado, a U.S. citizen, right, in May 2013, for alleged drug possession. She and her husband, Gary, were traveling from Mexico back to the United States when their bus was stopped and searched. She was released a few days later and is now back in the United States.

Y – Mexican authorities arrested Yanira Maldonado, a U.S. citizen, right, in May 2013, for alleged drug possession. She and her husband, Gary, were traveling from Mexico back to the United States when their bus was stopped and searched. She was released a few days later and is now back in the United States.

U.S. tourist and Korean War veteran Merrill Newman arrives at the Beijing airport on December 7, 2013, after being released by North Korea. Newman was detained in October 2013 by North Korean authorities just minutes before he was to depart the country after visiting through an organized tour. His son Jeff Newman said the Palo Alto, California, man had all the proper paperwork and set up his trip through a North Korean-approved travel agency.

This undated image provided by the U.S. Army shows Sgt. Bowe Bergdahl, who had been held by insurgents in Afghanistan since 2009. The White House announced Bergdahl's release on May 31, 2014. Bergdahl was released in exchange for five senior Taliban members held by the U.S. military. In March 2015, the U.S. military charged Bergdahl with one count each of "Desertion with Intent to Shirk Important or Hazardous Duty," and "Misbehavior Before The Enemy by Endangering the Safety of a Command, Unit or Place."

Alan Gross, at right with Rabbi Arthur Schneier, was jailed while working as a subcontractor in Cuba in December 2009. Cuban authorities say Gross tried to set up illegal Internet connections on the island. Gross says he was just trying to help connect the Jewish community to the Internet. Former President Jimmy Carter and New Mexico Gov. Bill Richardson both traveled to Cuba on Gross' behalf. He was eventually released in December

American journalist Peter Theo Curtis was handed over to U.N. peacekeepers in August 2014 after nearly two years in captivity. He is believed to have been captured in October 2012 and held by the al-Nusra Front, a Syrian rebel group with ties to al Qaeda.

Miller , an American sentenced to six years of hard labor in North Korea, was one of three Americans who spoke to CNN's Will Ripley in September 2014 and implored the U.S. government for help. The 24-year-old was accused of tearing up his tourist visa and seeking asylum upon entry to North Korea.

Miller , an American sentenced to six years of hard labor in North Korea, was one of three Americans who spoke to CNN's Will Ripley in September 2014 and implored the U.S. government for help. The 24-year-old was accused of tearing up his tourist visa and seeking asylum upon entry to North Korea.

In May 2013, a North Korean court sentenced Kenneth Bae, a U.S. citizen, to 15 years of hard labor for committing "hostile acts" against the state. North Korea claimed Bae was part of a Christian plot to overthrow the regime. In a short interview with CNN in September 2014, Bae said he is working eight hours a day, six days a week at a labor camp. "Right now what I can say to my friends and family is, continue to pray for me," he said. After months in detention, he and fellow American detainee Matthew Todd Miller were released in November

One of three Americans detained in North Korea, Jeffrey Edward Fowle was released and sent home, a State Department official told CNN in October 2014. Fowle was accused of leaving a Bible in a hotel where he was staying. North Korea announced Fowle's detention in June of that year, saying he had violated the law by acting "contrary to the purpose of tourism." Fowle told CNN: "I've admitted my guilt to the government and signed a statement to that effect and requested forgiveness from the people and the government of the DPRK."

One of three Americans detained in North Korea, Jeffrey Edward Fowle was released and sent home, a State Department official told CNN in October 2014. Fowle was accused of leaving a Bible in a hotel where he was staying. North Korea announced Fowle's detention in June of that year, saying he had violated the law by acting "contrary to the purpose of tourism." Fowle told CNN: "I've admitted my guilt to the government and signed a statement to that effect and requested forgiveness from the people and the government of the DPRK."

U.S. officials revealed in April 2015 that Warren Weinstein, a 73-year-old American aid worker that had been held hostage in Pakistan since August 2011, had been accidentally killed in a U.S. drone strike targeting al Qaeda.

Jailed since 2013 and sentenced to life for supporting the Muslim Brotherhood in Egypt, Mohamed Soltan was eventually released, the U.S. Embassy in Cairo said in May 2015. Soltan's family denies he belonged to the Brotherhood. Soltan had been a dual U.S. and Egyptian citizen, but he renounced his Egyptian citizenship as a condition of his release.

Mothers Linda Boyle, left, and Lyn Coleman hold photo of their married children, Joshua Boyle and Caitlin Coleman, who were kidnapped by the Taliban in late 2012. Coleman was pregnant when she was kidnapped and is believed to have had a child in captivity.

Mothers Linda Boyle, left, and Lyn Coleman hold photo of their married children, Joshua Boyle and Caitlin Coleman, who were kidnapped by the Taliban in late 2012. Coleman was pregnant when she was kidnapped and is believed to have had a child in captivity.

Retired FBI agent Robert Levinson has been missing since 2007. His family says he was working as a private investigator in Iran when he disappeared, and multiple reports suggest Levinson may have been working for the CIA. His family told CNN that they have long known that Levinson worked for the CIA, and they said it's time for the government to lay out the facts about Levinson's case. U.S. officials have consistently denied publicly that Levinson was working for the government, but they have repeatedly insisted that finding him and bringing him home is a "top" priority. The FBI increased its reward for information on Levinson from $1 million to $5 million.

Scott Darden was taken hostage by Houthi rebels in Yemen in March 2015. He was captured while working for New Orleans-based Transoceanic Development, according to a source close to his family.

Siamak Namazi, a Dubai-based businessman with dual U.S. and Iranian citizenship, was detained while visiting relatives in Tehran , the Wall Street Journal reported October 29, citing unnamed sources. The Washington Post also reported his detention, citing a family friend who spoke on condition of anonymity. The Post reported that it wasn't clear what Namazi is alleged to have done. His detention would bring to five the number of Americans detained or unaccounted for in the Islamic republic.

Amir Hekmati, a former U.S. Marine charged with spying, was freed as part of a prisoner swap that included Washington Post journalist Jason Rezaian on January 16. An Iranian court threw out a 2011 death sentence forHekmati, but he was secretly retried in Iran and convicted of "practical collaboration with the U.S. government," his sister told CNN on April 11. He was sentenced to 10 years in prison, she said. Hekmati was detained in August 2011 during a visit to see his grandmother. His family and the Obama administration deny accusations he was spying for the CIA.

Saeed Abedini, a U.S. citizen of Iranian birth, was freed as part of a prisoner swap that included Washington Post journalist Jason Rezaian on January 16. Abedini was sentenced to eight years in prison in January 2013. He was accused of attempting to undermine the Iranian government and endangering national security by establishing home churches. He was detained in Iran on September 26, 2012, according to the American Center for Law and Justice.

Jason Rezaian, The Washington Post's bureau chief in Tehran, was released January 16 as part of a prisoner swap. Rezaian was convicted by an Iranian Revolutionary Court in October, according to Iran's state-run media. Rezaian was reportedly facing up to 20 years, but the sentence was not specified. The journalist was taken into custody in July 2014 and later charged with espionage; the Post has denied all allegations against him. His wife, Yeganeh Salehi, also was detained in July 2014 but later released.

Abrams on Monday ordered Bergdahl's case to a general court-martial, which means Bergdahl could face life imprisonment if convicted of "misbehavior before the enemy by endangering the safety of a command, unit or place."

Bergdahl disappeared from his base in Afghanistan in June 2009 and was held in captivity by the Taliban until the U.S. released five Taliban detainees in a controversial exchange for Bergdahl in May 2014. Six U.S. troops allegedly died in the months following Bergdahl's disappearance during missions partly aimed at finding and rescuing him, though this contention has been disputed, with one U.S. official saying last year there was "no evidence" to back up the claim

Bergdahl's defense attorney, Eugene Fidell, slammed the decision in a statement Monday and said that he "had hoped the case would not go in this direction."

"We will continue to defend Sgt. Bergdahl as the case proceeds," Fidell said in the statement, noting that Abrams "did not follow the advice of the preliminary hearing officer who heard witnesses."

Photos: Guantanamo detainees swapped for Bergdahl Photos: Guantanamo detainees swapped for Bergdahl Five detainees at Guantanamo Bay were transferred to Qatar in exchange for the release of Army Sgt. Bowe Bergdahl, who was being held by the Taliban. Two senior administration officials confirmed the names of the released detainees, whose photos were obtained by WikiLeaks. Khair Ulla Said Wali Khairkhwa, seen here, was an early member of the Taliban in 1994 and was interior minister during the Taliban's rule. He was arrested in Pakistan and was transferred to Guantanamo in May 2002. During questioning, Khairkhwa denied all knowledge of extremist activities. Hide Caption 1 of 5 Photos: Guantanamo detainees swapped for Bergdahl Mullah Mohammad Fazl commanded the main force fighting the U.S.-backed Northern Alliance in 2001, and served as chief of army staff under the Taliban regime. Fazl was detained after surrendering to Abdul Rashid Dostam, the leader of Afghanistan's Uzbek community, in November 2001. He was transferred into U.S. custody in December 2001 and was one of the first arrivals at Guantanamo, where he was assessed as having high intelligence value. Hide Caption 2 of 5 Photos: Guantanamo detainees swapped for Bergdahl Mullah Norullah Noori served as governor of Balkh province in the Taliban regime and played some role in coordinating the fight against the Northern Alliance. Like Fazl, Noori was detained after surrendering to Dostam, the Uzbek leader, in 2001. Hide Caption 3 of 5 Photos: Guantanamo detainees swapped for Bergdahl Abdul Haq Wasiq was the deputy chief of the Taliban regime's intelligence service. Wasiq claimed, according to an administrative review, that he was arrested while trying to help the United States locate senior Taliban figures. He denied any links to militant groups. Hide Caption 4 of 5 Photos: Guantanamo detainees swapped for Bergdahl Mohammad Nabi Omari was a minor Taliban official in Khost Province and was the Taliban's chief of communications and helped al Qaeda members escape from Afghanistan to Pakistan. He also said that he had worked with a U.S. operative named Mark to try to track down Taliban leader Mullah Omar. Hide Caption 5 of 5

The date of the arraignment hearing at Fort Bragg, North Carolina, will be announced at a later time.

Lt. Col. Mark Visger, the Army investigator who led the preliminary hearing into the charges Bergdahl faces, recommended against Bergdahl facing any jail time in October.

And Maj. Gen. Kenneth Dahl, who led the investigation into Bergdahl's actions in Afghanistan, testified in September that jail time would be "inappropriate" and said he did not find "any evidence to corroborate the reporting that Bergdahl was ... sympathetic to the Taliban."

Fidell told CNN's Martin Savidge that Bergdahl was notified in person by his company commander of the decision concerning the court-martial on Monday. Fidell would not indicate what Bergdahl's reaction was to the news.

CLARIFICATION: This story has been updated to reflect a dispute over the search for Bergdahl during his captivity.