Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

PCF Error: Length cannot be less than zero. Parameter name: length

(0) ShareShare
ReportReport
Posted on by 61

Hi All,

 

 I have created a PCF control and it works fine in the test harness. When I pack the control and import to CDS the import is failing with error  "Import Solution Failed: CustomControl with name failed to import with error: Length cannot be less than zero. Parameter name: length" .

Error code : "0x80160000".

 

has anyone faced this issue, please advise.

 

Many Thanks,

Nijo

  • Verified answer
    Nijos Profile Picture
    61 on at
    Re: PCF Error: Length cannot be less than zero. Parameter name: length

    Hi Danz,

     

    Pac Pfc Push is working, now cdsproj is also started working after deleting and recreating the cds project.

    Nijo

  • Verified answer
    Danish N. Profile Picture
    186 on at
    Re: PCF Error: Length cannot be less than zero. Parameter name: length

    How are you deploying it in CDS? Using cdsproj or pac pcf push? If cdsproj, can you try pac pcf push? And share the cdsproj file xml content

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 72 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

Overall leaderboard