problems generating deployment

I am facing an issue while trying to locally deploy my project in Pega 22. Although no errors are displayed during the pre-deploy scan, while trying to generate the deploy, I am getting the following error message:

Error creating deployment package: 'C:\Smart_Automation\EncuestaOnboardingDR\Deploy\EncuestaOnboardingDR.pega'

He thoroughly reviewed the components and properties of the project, but did not find any obvious problems. This issue only occurs with this particular project.

Could you please provide me with some guidance on how to resolve this issue or what else could be causing the local deployment to fail?

I appreciate your attention and look forward to your prompt response.

I migrated this project from the epga version 19.1.118 and this version does not cause any problems for me

@JuanG158 I would take a look at your %AppData%\Pegasystems\Logs\PegaRobotStudio.log and see if there is any helpful information there. Make sure you set your logging level to DEBUG as that will provide the most information. If you can attach that file, I am happy to look at it for you.

@ThomasSasnett Thank you very much for your help, it worked, I could see the error in the log, I corrected it and it worked perfectly. the error was an invalid script