• SudhakarCh
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies

Please anyone let me know..,How to insert OpportunityLineItemSchedule record using Apex in Test class?

I have a package I pulled down using sfdx force:mdapi:retrieve which I then converted to DX structure using the force:mdapi:convert command.  One thing that happens during convert is that all the Static Resources in my package that were a .zip archive are then decompressed and shown in a folder structure under staticresources in the DX folder structure.  My issue comes when I am trying to do a deploy of DX source code back into the packaging org (not a scratch org) using force:source:convert and then force:mdapi:deploy, I get the following message for one or more of the static resources in the package:

The specified Static Resource is not a valid zip file

I am assuming the convert from DX to mdapi should zip all of the files in the DX folder for the static resource, but it looks like something is going wrong.  Has anyone else run into this error before?

Please anyone let me know..,How to insert OpportunityLineItemSchedule record using Apex in Test class?