MOSCOW (AP) — Wall Street Journal reporter Evan Gershkovich appeared Tuesday in Moscow City Court, seeking release from jail on espionage charges, but it declined to hear his appeal and returned the case to a lower court to deal with unspecified procedural violations.

The decision means Gershkovich, 31, will remain jailed at least until Nov. 30, unless his appeal is heard in the meantime and he is released — an unlikely outcome.

Before the session was closed, Gershkovich appeared in the glass defendants’ cage, smiling at fellow journalists and wearing a yellow sweater and blue jeans. He was https://apnews.com/article/russia-gershkovich-journalist-espionage-wall-street-journal-7508fa72a55d81d2a7f826c701133a22">detained in March while on a reporting trip to the city of Yekaterinburg, about 2,000 kilometers (1,200 miles) east of Moscow.

There was initial confusion about the outcome when the state news agency Tass reported the court had rejected Gershkovich's appeal, but it later changed its report to say the case was sent to the lower court.

The court proceedings are closed because prosecutors say details of the criminal case are classified. Gershkovich last appeared in court in August when a judge ruled he must stay in jail until the end of November. Tuesday's hearing stemmed from that decision.

U.S. Ambassador to Russia Lynne Tracy made her fourth visit to Gershkovich on Friday, two days after the reporter's parents appeared at U.N. headquarters and called on world leaders to https://apnews.com/article/un-russia-gershkovich-reporter-leaders-release-a156e377f4767d8db5c9eaae52f4f992">urge Russia to free him. Tracy said later that Gershkovich “remains strong and is keeping up with the news," including his parents' appeal.

“The plight of U.S. citizens wrongfully detained in Russia remains a top priority for me, my team at the embassy, and the entire U.S. government," Tracy told reporters outside court.

Russia’s Federal Security Service alleged Gershkovich, “acting on the instructions of the American side, collected information constituting a state secret about the activities of one of the enterprises of the Russian military-industrial complex.”

Gershkovich and the Journal deny the allegations, and the U.S. government declared him to be wrongfully detained. Russian authorities haven’t detailed any evidence to support the espionage charges.

He is being held at Moscow’s Lefortovo prison, notorious for its harsh conditions.

Gershkovich is the first American reporter to face espionage charges in Russia since 1986, when Nicholas Daniloff, a Moscow correspondent for U.S. News and World Report, was arrested by the KGB.

Analysts have pointed out that Moscow may be using jailed Americans as bargaining chips after U.S.-Russian tensions soared when Russia sent troops into Ukraine. At least two U.S. citizens arrested in Russia in recent years — including https://apnews.com/article/brittney-griner-freed-viktor-bout-swap-us-russia-ee51f5c14f35dc4d4cf21224a8e44eaa">WNBA star Brittney Griner — have been exchanged for Russians jailed in the U.S.

The Russian Foreign Ministry has said it would consider a swap for Gershkovich only after a verdict in his trial. In Russia, espionage trials can last for more than a year.