
I am using Service account which has Power Automate premium plan. When HTTP action to translate text I get this error.
The request is not authorized because credentials are missing or invalid.
When the same flow is replicated and ran on my personal org account, the flow runs successfully. I do not have Power Automate premium account yet, so probably trial is activated. Am not able to understand the same flow working with one account and not with other.
Failed flow HTTP input
{
"statusCode": 401,
"headers": {
"X-RequestId": "TRAN.AM4P.0346.1104T0456.1505944",
"Access-Control-Expose-Headers": "X-RequestId",
"X-Content-Type-Options": "nosniff",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"Date": "Sat, 04 Nov 2023 04:56:57 GMT",
"Content-Type": "text/plain; charset=utf-8",
"Content-Length": "111"
},
"body": "{\"error\":{\"code\":401000,\"message\":\"The request is not authorized because credentials are missing or invalid.\"}}"
}HTTP Input on successful flow
{
"statusCode": 200,
"headers": {
"X-MT-System": "Microsoft,Microsoft,Microsoft,Microsoft,Microsoft,Microsoft,Microsoft,Microsoft",
"X-RequestId": "TRAN.AM4P.0345.1104T0459.14CC877",
"Access-Control-Expose-Headers": "X-RequestId,X-Metered-Usage",
"X-Content-Type-Options": "nosniff",
"X-Metered-Usage": "66",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"Date": "Sat, 04 Nov 2023 04:59:45 GMT",
"Content-Type": "application/json; charset=utf-8",
"Content-Length": "788"
},
"body": [
{
"detectedLanguage": {
"language": "en",
"score": 0.67
},
"translations": [
{
"text": "Purmo Group Plc",
"to": "en"
}
]
},
{
"detectedLanguage": {
"language": "fi",
"score": 1
},
"translations": [
{
"text": "Bulevardi 46, 00120, Helsinki, FI",
"to": "en"
}
]
},
{
"detectedLanguage": {
"language": "fr",
"score": 1
},
"translations": [
{
"text": "N/A",
"to": "en"
}
]
},
{
"detectedLanguage": {
"language": "fr",
"score": 1
},
"translations": [
{
"text": "N/A",
"to": "en"
}
]
},
{
"detectedLanguage": {
"language": "fr",
"score": 1
},
"translations": [
{
"text": "N/A",
"to": "en"
}
]
},
{
"detectedLanguage": {
"language": "fr",
"score": 1
},
"translations": [
{
"text": "N/A",
"to": "en"
}
]
},
{
"detectedLanguage": {
"language": "fr",
"score": 1
},
"translations": [
{
"text": "N/A",
"to": "en"
}
]
},
{
"detectedLanguage": {
"language": "fr",
"score": 1
},
"translations": [
{
"text": "N/A",
"to": "en"
}
]
}
]
} I figured out the problem. My HTTP action was inside apply to each with concurrency control turned ON. I couldn't find any reference why that is actually a problem. I had to turn it off for the flow to work.
Thanks,
Ramesh