PA20-S/PA-65-007 e-file error
This error occurs when e-filing a Pennsylvania 1065 return because the PA-65 Corp return requires at least 2 corporate partners with Schedule CP filing marked.
Error message
1. Validation failed on [FILE_ID]: Error: Expecting: SchI, SchDirectory. Element Name: ReturnDataState XPath: /ReturnState[1]/ReturnDataState[1] XML Fragment: truefalsefalse523900falseAfalsefalseField Key: 0,0,0,0,0,0,0,0,0 Error Code: [CODE] Error Reason: Content for element '{http://www.irs.gov/efile}ReturnDataState' is incomplete according to the DTD/Schema. Expecting: {http://www.irs.gov/efile}SchI, {http://www.irs.gov/efile}SchDirectory. *PA20-S/PA-65-007: Missing required forms for return type - E-filing PA20S/PA65 requires at least one SchRK1 or SchNRK1 element
Solution
This error occurs for the PA-65 Corp return (for corporations filing with Pennsylvania). At least 2 corporate partners need to be included for PA-65 Corp filing.
- Go to .
- Select theState Informationtab.
- Select thePennsylvaniahyperlink.
- In the bottom grid, markXin theFiling Sch CP for PAcolumn for all corporate partners.
- Run a full recompute, then recreate the e-file.
Solution 2: Alternative method
- Go to .
- Select theState Partner Informationtab.
- Go to thePennsylvaniasection.
- Select theFiling PA Schedule CPcheckbox.
- Repeat for each corporate partner.
- Run a full recompute, then recreate the e-file.
Solution 3: Additional considerations
If you're using K-1 aggregation files, verify the following:
- The aggregation files are formatted correctly for Pennsylvania requirements.
- When all partners are corporations, the PA schema expects only Form65Corp, SchHCorp, and SchCP elements—not NRK-1 elements.
- Go to to review attached files.