Skip to Content
author's profile photo Former Member
Former Member

DI Error code -10 adding new item group

Hello all,

I'm trying to add new item groups via DI API (object "ItemGroups") in B1 2007 PL47 and this error occurs:

........DI Error Code: -10 (-10) invalid Cycle Code.

Forcing the value to a valid value, e.g. 1 (the type is long), the same error occurs.

Can anyone help me? Thanks

IZ

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jun 04, 2009 at 11:01 AM

    Check link invalid-cycle-code

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2020 at 08:43 AM

    It may be a little late for you to review this post but it may be helpful for future users looking to solve this issue...

    well, I was trying to add or update Item Groups (oItemGroups) using the SDK, the system returned an error about "Invalid Cycle Code"

    The error message was completely unrelated to the real problem, the issue is that "Advanced G/L Account Determination" was enabled on the Database (Company Details > Basic Initialization : Enable Advance G/L Account Determination) so, the system will use some rules to post transactions in the accounts.

    Therefore, when this feature is enabled DO NOT set a value for any Account

    Do not even set empty, null or zeros on the following fields from your object (oItemGroups)

    SAP_Object.ExpensesAccount

    SAP_Object.RevenuesAccount

    SAP_Object.InventoryAccount

    SAP_Object.CostAccount

    SAP_Object.TransfersAccount

    SAP_Object.VarianceAccount

    SAP_Object.PriceDifferencesAccount

    SAP_Object.NegativeInventoryAdjustmentAccount

    SAP_Object.DecreasingAccount

    SAP_Object.IncreasingAccount

    SAP_Object.ReturningAccount

    SAP_Object.ExchangeRateDifferencesAccount

    SAP_Object.GoodsClearingAccount

    SAP_Object.DecreaseGLAccount

    SAP_Object.IncreaseGLAccount

    SAP_Object.WIPMaterialAccount

    SAP_Object.WIPMaterialVarianceAccount

    SAP_Object.WipOffsetProfitAndLossAccount

    SAP_Object.InventoryOffsetProfitAndLossAccount

    SAP_Object.ExpenseClearingAct

    SAP_Object.StockInTransitAccount

    SAP_Object.ShippedGoodsAccount

    SAP_Object.SalesCreditAcc

    SAP_Object.PurchaseCreditAcc

    I hope this helps

    Diego Navas

    2020-07-25

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.