question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate Operation 'List' detected when generating code for Resources

See original GitHub issue

@pakrym, as Allen already told you there’re issues when using batch for Resources RP, so I tried input-file, but got error as below:

autorest.md

azure-arm: true
input-file:
    - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/resources/resource-manager/Microsoft.Resources/stable/2019-10-01/resources.json
    - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/resources/resource-manager/Microsoft.Resources/stable/2019-11-01/subscriptions.json
    - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-09-01/policyAssignments.json
    - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-09-01/policyDefinitions.json
    - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/resources/resource-manager/Microsoft.Authorization/stable/2019-09-01/policySetDefinitions.json
    - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/resources/resource-manager/Microsoft.Resources/preview/2019-10-01-preview/deploymentScripts.json
modelerfour:
    lenient-model-deduplication: true

Error detial

EXEC : error (): Duplicate Operation ‘List’ detected. [C:\AME\work-azure-net-sdk\sdk\resources\Azure.Management.Resource\src\Azure.Management.Resource.csproj] FATAL : error : 1 errors occured – cannot continue. [C:\AME\work-azure-net-sdk\sdk\resources\Azure.Management.Resource\src\Azure.Management.Resource.csproj] EXEC : error : Plugin checker reported failure. [C:\AME\work-azure-net-sdk\sdk\resources\Azure.Management.Resource\src\Azure.Management.Resource.csproj] C:\AME\work-azure-net-sdk\eng\CodeGeneration.targets(24,5): error MSB3073: The command “npx autorest@https://github.com/Azure/autorest/releases/download/autorest-3.0.6222/autorest-3.0.6222.tgz --version=3.0.6282 C:\AME\work-azure-net-sdk\sdk\resources\Azure.Management.Resource\src/autorest.md --use=https://github.com/Azure/autorest.csharp/releases/download/3.0.0-dev.20200513.39/autorest-csharp-v3-3.0.0-dev.20200513.39.tgz --output-folder=C:\AME\work-azure-net-sdk\sdk\resources\Azure.Management.Resource\src --title=Azure.Management.Resource --namespace=Azure.Management.Resource --shared-source-folder=C:\AME\work-azure-net-sdk\eng../sdk/core/Azure.Core/src/Shared/ --verbose” exited with code 1. [C:\AME\work-azure-net-sdk\sdk\resources\Azure.Management.Resource\src\Azure.Management.Resource.csproj]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
pakrymcommented, May 16, 2020

@fearthecowboy @daviwil should we add a deduplication logic for operations too?

It would also be nice to improve error messages to have an actual operation ID.

0reactions
daviwilcommented, Jun 2, 2020

Setting this to P1 because using a transform is a sufficient workaround in the meantime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate Code Detection - Concepts - IBM
- Search from a COBOL code fragment. Only the duplicates that correspond to the COBOL extract are returned. - Search on a set...
Read more >
HTTP response code for POST when resource already exists
When a resource to be created has a duplicate identifier, that is a resource with the same /object/{id} URI already exists, the /objects ......
Read more >
Set up duplicate detection rules to keep your data clean
To create a new duplicate detection rule, choose New. ... In the Duplicate Detection Rule Criteria section, in the Base Record Type list, ......
Read more >
Analyze duplicates | IntelliJ IDEA Documentation - JetBrains
In the search field of the Inspections dialog, type duplicated code fragment to locate the inspection in the list. Once you click the...
Read more >
Title replacement/duplicate - State of Michigan
Only the vehicle owner may request a duplicate title. To order a duplicate title online, ... Create or log into your Secretary of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found