search
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Can you capture more info about exception? Like stack trace or something?
Sorry for the late reply, but it was figured out. We had to do this:
DataCommand command = new DataCommand();
command.ConnectionString = CoreConfiguration.Instance.Connection.AppDatabase;
command.CommandText = "[cms_LanguageInfoLoadAll]";
command.Parameters = new DataParameters
{
new DataParameter("ApplicationId", AppContext.Current.ApplicationId, DataParameterType.UniqueIdentifier)
};
DataTable loadTable = DataService.LoadTable(command);
DataRowCollection languages = loadTable.Rows;
Instead of callingLanguage.GetAllLanguagesDT().Rows
Sounds like AppContext or something similar was not initialized. You know - it's always better to dig till root cause, figure out what's the case, make adjustments, test and share the knowledge :)
I'm trying to get a all the languages that are available in Commerce from CMS. I'm using
but I'm getting
every time I look to access it. Any suggestions would be greatly appreciated.