-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload bacpac file to LCS asset library issue #788
Comments
Thanks for reporting. "Internal server error" indicates that the issue was with the LCS service itself. Is this the first time the upload is being done? Or did it work before? According to https://www.yammer.com/dynamicsaxfeedbackprograms/threads/2564964316397568 there seems to have been an LCS outage yesterday. Maybe try again to check if it was an intermittent issue and works now? |
See also discussion #614 I just noticed you try to upload the .bacpac file to file type "ProcessDataPackage". I wouldn't expect that part of the asset library to accept database backups. As mentioned in the discussion, it may very well be that Microsoft does not allow uploads of database backups of any kind to the asset library. |
Thanks for your reply. I have tried just now but still I am witnessing the same issue. |
HI Thanks for your reply, it was not allowed with .bak file, but with below url, it was working with bacpac file. https://community.dynamics.com/forums/thread/details/?threadid=3fd87fcd-3d08-4fdd-b388-4a7d834b0e4f |
Thanks for your reply. I know it is not allowing to .bak file. But if you refer below url, it is working for bacpac file to upload in asset library. https://community.dynamics.com/forums/thread/details/?threadid=3fd87fcd-3d08-4fdd-b388-4a7d834b0e4f |
Hi Splaxi, Thanks for the reply. |
Then I would argue that you need to step even further back in the analysis of your access for the LCS api. A simple test is as follows: Get-D365LcsApiToken -Username '[email protected]' -Password 'ThisIsAPassword' -ClientId '1f68ab91-550e-4766-858f-cc0627bf995c' -LcsApiUri 'https://lcsapi.lcs.dynamics.com' | Set-D365LcsApiConfig -LcsApiUri 'https://lcsapi.lcs.dynamics.com' -ClientId '1f68ab91-550e-4766-858f-cc0627bf995c' -ProjectId '123456789' -Temporary
Get-D365LcsEnvironmentMetadata This is the most basic way to ensure that you have all the needed details in place: If the above fails - the To be perfectly clear, you will have to replace ALL values for Username, Password, ClientId and ProjectId - you MIGHT need to utilize another LcsApiUri value than the one mentioned in the above examples. |
Thank you so much for your time. I tried the command you have added in above comment and I am able to execute the command Get-D365LcsApiToken with out any errors. |
What about the |
it was returning the existing environments to the console. |
Closing this - as the LCS API doesn't support bacpac / bak files upload.... |
Hello,
I am trying to upload the .bacpac file from my local drive to LCS asster library, and I am end with an error which does not have much details. Please help if anybody have solutions. Please let me know if any further questions.
Here is the error I am receiving on console:
[17:15:56][Start-LcsUploadV2] Something went wrong while working against the LCS API. | Response status code does not indicate success: 500 (Internal Server Error).
WARNING: [17:15:56][Start-LcsUploadV2] Stopping because of errors
Source code;
$BearerToken = "Bearer $ ($TokenResponse.access_token)" -- Getting token it right...
$LcsApiUri = "https://lcsapi.lcs.dynamics.com"
[int]$ProjectId = 1666824
$LocalPath = "D:\bacpac\sivatestbackup.bacpac"
#$FileType = "SoftwareDeployablePackage"
$FileType = "ProcessDataPackage"
try
{
}
catch {
$formattedDateTime = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
Write-Host "Error occurred while uploading file to asset library tatus: $_ at: current time = $formattedDateTime"
return "Failed"
}
The text was updated successfully, but these errors were encountered: