You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "rifat-tfs (via GitHub)" <gi...@apache.org> on 2025/08/20 05:56:13 UTC
[I] [Bug][Jira] Error: Data too long for column 'field' [incubator-devlake]
rifat-tfs opened a new issue, #8545:
URL: https://github.com/apache/incubator-devlake/issues/8545
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
### What happened
I am getting error when collecting data from Jira:
`Error running pipeline 77. Wraps: (2) Error running task 734. | Wraps: (2) subtask extractIssues ended unexpectedly | Wraps: (3) error adding result to batch (500) | Wraps: (4) Error 1406 (22001): Data too long for column 'field' at row 201 (500) | Wraps: (5) Error 1406 (22001): Data too long for column 'field' at row 201 | Error types: (1) *hintdetail.withDetail (2) *hintdetail.withDetail (3) *hintdetail.withDetail (4) *hintdetail.withDetail (5) *mysql.MySQLError Error types: (1) *hintdetail.withDetail (2) *errors.errorString`
### What do you expect to happen
The data collection must not fail. The length of the string can be trimmed if possible or increase the length of the column.
### How to reproduce
Since I don't know what in jira data maps to 'filed' column, it's not possible to say how it can be reproduced. However it happens for a few projects.
<img width="1235" height="472" alt="Image" src="https://github.com/user-attachments/assets/df77befb-f037-4c0f-b0a7-36d29dcda090" />
### Anything else
_No response_
### Version
v1.0.2
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Jira] Error: Data too long for column 'field' [incubator-devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #8545:
URL: https://github.com/apache/incubator-devlake/issues/8545#issuecomment-3240729311
Try the "Full Sync" which would delete the existing collected data.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Jira] Error: Data too long for column 'field' [incubator-devlake]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #8545:
URL: https://github.com/apache/incubator-devlake/issues/8545#issuecomment-3204302385
<!-- Greeting -->
Hi @rifat-tfs! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the incubator-devlake team.
<!-- Answer -->
The error happens because the Jira plugin tries to insert a field name from a Jira issue changelog into the `field` column of the `jira_issue_changelogs` table, which is defined as `varchar(255)`. If Jira returns a field name longer than 255 characters (possible with custom fields), MySQL rejects the row and you get this error. There’s currently no trimming or resizing of this value before insertion, and no config or code path in v1.0.2 to handle it automatically.
To resolve this, you can either:
1. Increase the column length in your database migration/model (e.g., to `varchar(500)`), but keep in mind MySQL index length limits if the column is indexed ([see discussion](https://github.com/apache/incubator-devlake/issues/8471)).
2. Implement string trimming in the extraction code so values longer than 255 characters are truncated before insertion ([recommended approach](https://github.com/apache/incubator-devlake/issues/8325)).
Let me know if you want details on how to make either change!
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/5c308c42-5fae-4afe-b19e-3eb7961e5198?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/5c308c42-5fae-4afe-b19e-3eb7961e5198?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/5c308c42-5fae-4afe-b19e-3eb7961e5198?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/5c308c42-5fae-4afe-b19e-3eb7961e5198?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/5c308c42-5fae-4afe-b19e-3eb7961e5198?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/5c308c42-5fae-4afe-b19e-3eb7961e5198?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/5c308c42-5fae-4afe-b19e-3eb7961e5198?feedback_type=other)</sup> [](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=githu
b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8545)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Jira] Error: Data too long for column 'field' [incubator-devlake]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8545: [Bug][Jira] Error: Data too long for column 'field'
URL: https://github.com/apache/incubator-devlake/issues/8545
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Jira] Error: Data too long for column 'field' [incubator-devlake]
Posted by "tc-jason-gregory (via GitHub)" <gi...@apache.org>.
tc-jason-gregory commented on issue #8545:
URL: https://github.com/apache/incubator-devlake/issues/8545#issuecomment-3254110347
Issue is resolved for me with latest v1.0.3-beta5@5da21bf. Thanks all!!!!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Jira] Error: Data too long for column 'field' [incubator-devlake]
Posted by "d4x1 (via GitHub)" <gi...@apache.org>.
d4x1 commented on issue #8545:
URL: https://github.com/apache/incubator-devlake/issues/8545#issuecomment-3265619489
@tc-jason-gregory [v1.0.3-beta5](https://github.com/apache/incubator-devlake/releases/tag/v1.0.3-beta5) is released.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Jira] Error: Data too long for column 'field' [incubator-devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #8545:
URL: https://github.com/apache/incubator-devlake/issues/8545#issuecomment-3240725169
try "Full Sync"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Jira] Error: Data too long for column 'field' [incubator-devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #8545:
URL: https://github.com/apache/incubator-devlake/issues/8545#issuecomment-3247858976
@d4x1 will release a new beta ASAP to include the fix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Jira] Error: Data too long for column 'field' [incubator-devlake]
Posted by "davinogueiradev (via GitHub)" <gi...@apache.org>.
davinogueiradev commented on issue #8545:
URL: https://github.com/apache/incubator-devlake/issues/8545#issuecomment-3246587393
Hi @tc-jason-gregory to Epic errors, this issue #8558 will solve it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Jira] Error: Data too long for column 'field' [incubator-devlake]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8545:
URL: https://github.com/apache/incubator-devlake/issues/8545#issuecomment-3505465020
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Jira] Error: Data too long for column 'field' [incubator-devlake]
Posted by "tc-jason-gregory (via GitHub)" <gi...@apache.org>.
tc-jason-gregory commented on issue #8545:
URL: https://github.com/apache/incubator-devlake/issues/8545#issuecomment-3245428764
> Try the "Full Sync" which would delete the existing collected data.
"Full Sync" did not resolve the issue for me. Errors (3) from the affected stages (Jira Tasks)...
`subtask extractEpics ended unexpectedly Wraps: (2) json: cannot unmarshal object into Go struct field .fields.description of type string Wraps: (3) json: cannot unmarshal object into Go struct field .fields.description of type string Error types: (1) *hintdetail.withDetail (2) *hintdetail.withDetail (3) *json.UnmarshalTypeError`
`subtask extractEpics ended unexpectedly Wraps: (2) json: cannot unmarshal object into Go struct field Comment.fields.comment.comments.body of type string Wraps: (3) json: cannot unmarshal object into Go struct field Comment.fields.comment.comments.body of type string Error types: (1) *hintdetail.withDetail (2) *hintdetail.withDetail (3) *json.UnmarshalTypeError`
`subtask extractEpics ended unexpectedly Wraps: (2) json: cannot unmarshal object into Go struct field .fields.description of type string Wraps: (3) json: cannot unmarshal object into Go struct field .fields.description of type string Error types: (1) *hintdetail.withDetail (2) *hintdetail.withDetail (3) *json.UnmarshalTypeError`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Jira] Error: Data too long for column 'field' [incubator-devlake]
Posted by "tc-jason-gregory (via GitHub)" <gi...@apache.org>.
tc-jason-gregory commented on issue #8545:
URL: https://github.com/apache/incubator-devlake/issues/8545#issuecomment-3233547463
I see this same sort of error with extractEpics.
`time="2025-08-28 09:55:04" level=error msg=" [pipeline service] [pipeline #823] [task #61040] subtask extractEpics ended unexpectedly\n\tWraps: (2) json: cannot unmarshal object into Go struct field .fields.description of type string\n\tWraps: (3) json: cannot unmarshal object into Go struct field .fields.description of type string\n\tError types: (1) *hintdetail.withDetail (2) *hintdetail.withDetail (3) *json.UnmarshalTypeError"
`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Jira] Error: Data too long for column 'field' [incubator-devlake]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8545:
URL: https://github.com/apache/incubator-devlake/issues/8545#issuecomment-3535154463
This issue has been closed because it has been inactive for a long time. You can reopen it if you encounter the similar problem in the future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org