Hi,
I'm facing similar error. I'm trying to update the assignment score via LTI 1.1 Outcomes Service. When I post below xml to update the grade in canvas I got the error saying "Assignment is no longer associated with this tool". FYI : I added my domain "dev.*****.com" in external tool. Let me know what cause this error.
XML REQUST TO CANVAS (sent via postman)
curl --request POST 'https://canvas.instructure.com/api/lti/v1/tools/512621/grade_passback' \
--header 'Content-Type: application/xml' \
--header 'Authorization: OAuth oauth_consumer_key="TestKey",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1625257304",oauth_nonce="lhcDtysddgGUXWFlw5ccvQ3G1oCP8oSdGHLb59Cwfhoss",oauth_version="1.0",oauth_body_hash="XSWk1lAQos1%2FLnojme%2Fn7PNdpUw%3D",oauth_signature="2hG1SScywiL%2FCgIvmu4x742Wi8o%3D"' \
--data-raw '<?xml version = "1.0" encoding = "UTF-8"?>
<imsx_POXEnvelopeRequest xmlns="http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0">
<imsx_POXHeader>
<imsx_POXRequestHeaderInfo>
<imsx_version>V1.0</imsx_version>
<imsx_messageIdentifier>12345678</imsx_messageIdentifier>
</imsx_POXRequestHeaderInfo>
</imsx_POXHeader>
<imsx_POXBody>
<replaceResultRequest>
<resultRecord>
<sourcedGUID>
<sourcedId>512621-2980036-23199685-30722732-880f1716623d76932634d9e5983d1fd7ed874956</sourcedId>
</sourcedGUID>
<result>
<resultScore>
<language>en</language>
<textString>0.9</textString>
</resultScore>
</result>
</resultRecord>
</replaceResultRequest>
</imsx_POXBody>
</imsx_POXEnvelopeRequest>'
RESPONSE from canvas
<?xml version="1.0" encoding="UTF-8"?>
<imsx_POXEnvelopeResponse xmlns="http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0">
<imsx_POXHeader>
<imsx_POXResponseHeaderInfo>
<imsx_version>V1.0</imsx_version>
<imsx_messageIdentifier/>
<imsx_statusInfo>
<imsx_codeMajor>failure</imsx_codeMajor>
<imsx_severity>status</imsx_severity>
<imsx_description>Assignment is no longer associated with this tool
[EID_70000178818771]</imsx_description>
<imsx_messageRefIdentifier>12345678</imsx_messageRefIdentifier>
<imsx_operationRefIdentifier>replaceResult</imsx_operationRefIdentifier>
</imsx_statusInfo>
</imsx_POXResponseHeaderInfo>
</imsx_POXHeader>
<imsx_POXBody>
<replaceResultResponse/>
</imsx_POXBody>
</imsx_POXEnvelopeResponse>
Other Info.
1. The external tool is successfully added using xml configuration.
2. Successfully created a new assignment from the "External Tool". (The assignment is created using assignment selection placement. Once the item is selected below is the response sent to the TC)
ContentItemSelection: Tool Consumer <- Tool Provider
<form action="https://canvas.instructure.com/courses/2980036/external_content/success/external_tool_dialog" method="post">
<input type="hidden" name="lti_message_type" id="lti_message_type" value="ContentItemSelection">
<input type="hidden" name="lti_version" id="lti_version" value="LTI-1p0">
<input type="hidden" name="content_items" id="content_items" value='{
"@context": "http://purl.imsglobal.org/ctx/lti/v1/ContentItem",
"@graph": [
{
"@type": "LtiLinkItem",
"@id": "https://dev.*****.com/Miscellaneous/TestSelection?module=IIA",
"url": "https://dev.*****.com/Miscellaneous/TestSelection?module=IIA",
"title": "Test Assignment",
"mediaType": "application/vnd.ims.lti.v1.ltiassignment",
"placementAdvice": {
"presentationDocumentTarget": "iframe"
}
}]
}' />
<input type="hidden" name="oauth_consumer_key" value="TestKey" />
<input type="submit" value="submit"/>
</form>
Kindly share info/thoughts to fix this error. Thanks!