Skip to main content
Nintex Community Menu Bar

Code Fix: An error occurs when executing a List method on a View or Form at runtime

  • February 16, 2021
  • 0 replies
  • 5 views
  • Translate

 

Code Fix: An error occurs when executing a List method on a View or Form at runtime

KB001933

PRODUCT
K2 smartforms 4.7
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

 

Issue Description

An error occurs when executing a List method on a View or Form at runtime for Microsoft CRM and Microsoft NAV using the OData Service Broker.

 

 

Error

“Exception has been thrown by the target of an invocation”.

 

 

Cause

Microsoft CRM and Microsoft NAV do not support all the parameters of OData.

 

 

Resolution

  1. Ensure you have K2 4.7 installed.
  2. Download and Install the K2 4.7 May 2017 Cumulative Update from K2 Partner and Customer Portal.
  3. Get the K2 4.7 May 2017 Cumulative Update FP5 from Regional Support.
  4. Install the K2 4.7 May 2017 Cumulative Update FP5 to apply the fix.
  5. Edit the OData Service Instance and note that a new Service Key is available called “Exclude query parameters”.
  6. Enter the parameters to be excluded (enter excluded parameters separated by a comma) :
    • $top,$skip,$orderby,$inlinecount
  7. Refresh the SmartObject created from the OData Service Instance.

 

Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings