14
Views
7
Comments
Solved
Extension Problem

Hello All,

I have created a extension in c# which fetches data from api and then i am doing some complex parsing.

when i am running the code in Visual studio, its running completely fine.

But when i published it and consumed it in out-systems, its moving into infinity and going on running.

what could be the reason for that?

My initial instinct is, it could be due to the async method which is fetching api data?

Please require your expert help.

Rank: #1831
Solution

Thanks Guys Problem solved

The await was not returning control back to the extension

inserted 

Snippet

.ConfigureAwait(false)

at every await


Rank: #90

Hi Krunal,

Have you got any error, or checked  Service center.

Can you put some images of code.


Regards

Rahul Sahu

Rank: #1831

There is no as such error logged in service center

I am attaching some code screen shoots please check them out.

Screenshot64.png

Rank: #553

Hi Krunal,

You can use the following code in the extension flow to log at different points and try to find the issue. This will write to the General Log in Service Center.


GenericExtendedActions.LogMessage(AppInfo.GetAppInfo().OsContext, <Message>, <ModuleName>);

Rank: #1831
Solution

Thanks Guys Problem solved

The await was not returning control back to the extension

inserted 

Snippet

.ConfigureAwait(false)

at every await


Rank: #90

Good to see you :-)