SAP Knowledge Base Article - Public

3797337 - Cannot Delete Item in Cloud Application Studio: "Startindex cannot be less than zero"

Symptom

  • Unable to delete item/filecreated under a solution in SDK using Cloud Applications Studio.
  • Delete operation from Solution Explorer fails.
  • Error message: “StartIndex cannot be less than zero. Parameter name: startIndex”.

Environment

  • SAP Cloud for Customer core applications
  • ByDesign Studio Lifecycle Management

Reproducing the Issue

  1. Open Cloud Applications Studio and connect to the SDK DEV tenant.
  2. In Solution Explorer, navigate to the solution and locate CustomBO > ZCTIContext.
  3. Right-click ZCTIContext and choose Delete.
  4. Observe the error: “StartIndex cannot be less than zero. Parameter name: startIndex”.

Cause

A known issue in specific versions of the Cloud Applications Studio installer can cause the error “StartIndex cannot be less than zero” when deleting certain items. The issue is fixed in newer installer patches.

Resolution

  1. Update the local Cloud Applications Studio to the latest available (Copernicus) installer from the SAP ONE Support Launchpad Software Download Center.
  2. After updating, restart the Studio and retry deleting the item from Solution Explorer.
  3. If available, right-click the item and perform Undo Checkout, then attempt the deletion again.
  4. If deletion still fails, try deleting the item from the Project > Source Code Files view instead of Solution Explorer.
  5. If the issue persists after updating, contact support to request backend deletion of the affected item.

See Also

Refer to: Unable to delete empty folder in Cloud Application Studio (community thread)

Keywords

cloud applications studio, cannot delete file, delete fails, startindex cannot be less than zero, startindex error, parameter name startindex, solution explorer, custombo, zcticontext, undo checkout, source code files view, studio installer update, copernicus, sdk dev, backend deletion , KBA , AP-RC-BDS-LM , ByDesign Studio Lifecycle Management , Problem

Product

SAP Cloud for Customer core applications all versions